package com.gzedu.module.service.user.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gzedu.common.sys.service.impl.BaseService;
import com.gzedu.common.util.page.Page;
import com.gzedu.module.dao.user.IUserDao;
import com.gzedu.module.modle.user.User;
import com.gzedu.module.service.user.IUserService;


@Service
public class UserServcieImpl extends BaseService<User> implements IUserService{

	@Autowired
	private IUserDao userDao;
	
	public User getUserByName(String userName) {
		// TODO Auto-generated method stub
		return userDao.selectByUserName(userName);
	}

	public Page<User> findPage(Page<User> page) {
		// TODO Auto-generated method stub
		return userDao.page(null, page.getPageNo(), page.getPageSize());
	}
	

}
